package com.stnet.dao.enterprice.system;

import java.util.List;

import com.modules.commons.Pager;
import com.stnet.entity.Roles;
import com.stnet.entity.Users;

public interface UsersDao
{

    public abstract Users get(String s);

    public abstract Users get(String s, String s1);

    public abstract Users get(Long long1);

    public abstract void save(Users users);

    public abstract void update(Users users);

    public abstract void delete(Users users);

    public abstract void delete(Long long1);

    public abstract List findAll();

    public abstract boolean isNameUnique(String s);

    public abstract Pager getObjectListByClass(int i, int j, Class class1, String s);
    
    public Pager getAllUsers(int pageSize, int pageNo, Class classObject, String statu, String area);
    
    public abstract List getLinksAndAdByClassAndSize(Class class1, Long long1);
    
    public Users getUserByUnit(String area);
    
    public Pager getAllUsersByType(int pageSize, int pageNo, String statu, String type);
    
    public List findMemberByAgent(Long agent);
    
}